package com.dao;

import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.po.ClassPO;
import com.po.IndustryNewsInfoPO;
import com.po.JobInfoPO;
import com.po.PictureInfoPO;
import com.po.StudentInfoPO;
@Repository
public class IndexDao {
	@Autowired
	private SqlSessionTemplate sqlTemplate;


	/**
	 * 查找主页的班级报名信息
	 * @return
	 */
	
	public List<ClassPO> findClassInfo() {
		return sqlTemplate.selectList("index.findClassInfo");
	}
	/**
	 * 查找优秀学生的相关信息
	 * @return
	 */
	
	public List<StudentInfoPO> findStudentInfo() {
		return sqlTemplate.selectList("index.findStudentInfo");
	}
	
	/**
	 * 查询行业动态新闻信息 
	 * @return
	 */
	
	public List<IndustryNewsInfoPO> findNewsInfo() {
		return sqlTemplate.selectList("index.findNewsInfo");
	}
	
	/**
	 * 查找实训图片地址信息
	 * @return
	 */
	public List<PictureInfoPO> findPictureInfo() {
		return sqlTemplate.selectList("index.findPictureInfo");
	}
	/**
	 * 查找页面的招聘信息
	 * @return
	 */
	public List<JobInfoPO> findJobInfo() {
		return sqlTemplate.selectList("index.findJobInfo");
	}

}
